#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_list1.py
# author:wmf
# datetime:2021/3/8 14:19
# software: PyCharm
'''
this is function description
'''
# import module your need

classmate = ['Tom','Bob','Trcay']
list1 = [1,2,3,'x','a','b']

print(classmate)
print(classmate[0])
print(list1)

print('-'*25)

list1[2] = 'y'
print(list1)

print('-'*25)

list1.append('m')
print(list1)

print('-'*25)

list1.pop(4)
print(list1)

print('-'*25)

print(list1[3:])

print('-'*25)

print(list1[3:4])

print('-'*25)

del list1[1]
print(list1)

print(len(['q3',2]))
print(len([]))
print(len([1,2,3]+['x','y','z']))

for i in list1:
    print(i,end=' ')

print('\n')
L = ['Google','Runoob','Taobao']

print(L[-1])
print(L[-2])
print(L[-1:])
print(L[::-1])

str = "abcdefg"
L1 = list(str)

print(L1)
print(L1[::-1])

